package sv.gob.mh.dgii.model;

import javax.persistence.Column;
import javax.persistence.Embeddable;

@Embeddable
public class TbMensajesWebId implements java.io.Serializable{
	
	/**
	 * 
	 */
	private static final long serialVersionUID = -2880506892229387890L;
	
	private String cmsgweb;
	private String cregla;
	
	
	
	public TbMensajesWebId(String cmsgweb, String cregla) {
		this.cmsgweb = cmsgweb;
		this.cregla = cregla;
	}

	public TbMensajesWebId() {
	}

	@Column(name = "C_MSG_WEB", nullable = false, length = 25)
	public String getCmsgweb() {
		return this.cmsgweb;
	}
	
	@Column(name = "C_REGLA", nullable = false, length = 25)
	public String getCregla() {
		return this.cregla;
	}
	
	
	public void setCmsgweb(String cMsgWeb) {
		this.cmsgweb = cMsgWeb;
	}
	public void setCregla(String cRegla) {
		this.cregla = cRegla;
	}		

    @Override
    public int hashCode() {
        int hash = 7;
        hash = 19 * hash + (this.cmsgweb != null ? this.cmsgweb.hashCode() : 0);
        hash = 19 * hash + (this.cregla != null ? this.cregla.hashCode() : 0);
        return hash;
    }

    @Override
    public boolean equals(Object obj) {
        if (obj == null) {
            return false;
        }
        if (getClass() != obj.getClass()) {
            return false;
        }
        final TbMensajesWebId other = (TbMensajesWebId) obj;
        if ((this.cmsgweb == null) ? (other.cmsgweb != null) : !this.cmsgweb.equals(other.cmsgweb)) {
            return false;
        }
        if ((this.cregla == null) ? (other.cregla != null) : !this.cregla.equals(other.cregla)) {
            return false;
        }
        return true;
    }

}
